﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public class MainWindow : Form
    {
        Button b;
        public MainWindow()
        {
            b = new Button();
            b.Click += b_Click;
            b.Text = "EXIT!";
            b.Location = new Point(10, 10);
            this.FormBorderStyle = FormBorderStyle.None ;
            this.WindowState = FormWindowState.Maximized;
            this.Controls.Add(b);
            this.Show();
        }

        void b_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}
